<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body style="font-family:Arial, Helvetica, sans-serif">

<h1>My Task List Today (<?php echo $this->dateToday?>)
</h1>
<table width="1000" border="1" cellspacing="0" cellpadding="10" style="font-size:13px;">
  <tr>
    <th scope="col">No</th>
    <th scope="col">Task</th>
    <th scope="col">Create On</th>
    <th scope="col" style="width:300px;">Explaination</th>
    <th scope="col">Link</th>
    <th scope="col">Complete</th>
    <th scope="col">Completed</th>
  </tr>
<?php foreach($this->tList as $k => $v){?>  
  <tr <?php echo ($v['date_creat']!=$this->dateToday)?'style="background-color:#F99"':''; ?> >
    <td><?php echo $k + 1;?></td>
    <td><?php echo $v['title_task']?></td>
    <td><?php echo $v['date_creat']?></td>
    <td><?php echo $v['comment_task']?></td>
    <td>
    <?php  if(trim($v['link_task'])!='') {?>
    <a href="<?php echo $v['link_task']?>" target="_blank" title="<?php echo $v['link_task']?>">Click Here</a>
    <?php } else echo "<span style=\"color:#DEDEDE;\">N/A</span>"?>
    
    </td>
    <td><form id="form1" name="form1" method="post" action="">
      <input type="submit" name="btn_com" id="btn_com" value="Click To Finish" <?php 
	  echo ($v['date_complete']== "")?'':'disabled="disabled"';
	  ?>  />
      <input type="hidden" name="id_task_history" id="id_task_history" value="<?php echo $v['id_task_history']?>" />
    </form></td>
    <td><?php echo $v['time_complete']?></td>
  </tr>
<?php }?>
</table>



</body>
</html>
